#ifndef ENGINE_GLOBAL_H
#define ENGINE_GLOBAL_H

#include <QtCore/qglobal.h>

#ifdef ENGINE_LIB
# define G_EXPORT Q_DECL_EXPORT
#else
# define G_EXPORT Q_DECL_IMPORT
#endif

#define G_EXPORT_FN __declspec(dllexport)

extern "C" {
	class GGame;
	//__declspec(dllexport) bool	engine_initialize(GGame* pGame);
	G_EXPORT_FN bool	engine_initialize(GGame* pGame);	
	G_EXPORT_FN double	getFps(const double elapsed);
	G_EXPORT_FN double	lerp(const double v0, const double v1, const double t);
	G_EXPORT_FN double	bspline(double v0, double v1, double v2, double v3, double t1) ;
	G_EXPORT_FN double  getRandomMinMax(double min, double max);
	G_EXPORT_FN double  getRandomMax(int max);
	G_EXPORT_FN double  getRandom();
	G_EXPORT_FN double  radian_to_degree(double radian);
	G_EXPORT_FN double  degree_to_radian(double degree);
	G_EXPORT_FN double  deltapos_to_degree(double current_degree, double deltaX, double deltaY);
}

#endif // ENGINE_GLOBAL_H
